package com.lagou.service.impl;

import com.lagou.service.Method;

import java.util.Random;

public class MethodServiceImpl implements Method {

    @Override
    public String methodA(String A) {
        try {
            Thread.sleep((long) (Math.random() * 100));
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return "hello A" + A;
    }

    @Override
    public String methodB(String B) {
        try {
            Thread.sleep((long) (Math.random() * 100));
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return "hello B" + B;
    }

    @Override
    public String methodC(String C) {
        try {
            Thread.sleep((long) (Math.random() * 100));
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return "hello C" + C;
    }
}
